home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 1.toast / pc / sample code / contributed / waste / waste 1.3 / shared library projects / wesharedlibrary.c < prev   
Encoding:
C/C++ Source or Header  |  2000-06-23  |  662 b   |  39 lines

  1. /*
  2.  *    WESharedLibrary.c
  3.  *
  4.  *    WASTE PROJECT
  5.  *  CFM Shared Library initialization & Termination code
  6.  *
  7.  *  Copyright (c) 1993-1997 Marco Piovanelli
  8.  *    All Rights Reserved
  9.  *
  10.  *  C port by Dan Crevier
  11.  *
  12.  */
  13.  
  14.  
  15. #include "WASTEIntf.h"
  16.  
  17. #if !WASTE_SHARED_LIBRARY
  18. #error "This code is for CFM shared libraries only"
  19. #endif
  20.  
  21. //    globals
  22.  
  23. QDGlobals qd ;        //    define the Quickdraw globals here!
  24.  
  25. pascal OSErr _WECFMInitialize ( const CFragInitBlock * theInitBlock )
  26. {
  27. #pragma unused ( theInitBlock )
  28.  
  29.     //    initialize the Quickdraw globals
  30.     InitGraf ( & qd . thePort ) ;
  31.  
  32.     //    make the Code Fragment Manager happy
  33.     return noErr ;
  34. }
  35.  
  36. pascal void _WECFMTerminate ( void )
  37. {
  38. }
  39.